home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 1.iso / ARGONET / PD / MATHS / RLAB / RLAB125.ZIP / !RLaB / toolbox / min2 < prev    next >
Text File  |  1994-05-08  |  496b  |  19 lines

  1. //-------------------------------------------------------------------//
  2. //
  3. //  Syntax:     min2 ( A, B )
  4.  
  5. //  Description:
  6.  
  7. //  Return a matrix the same size as A and B with the smallest
  8. //  elements taken from A and B.
  9.  
  10. //  Note: the builtin function min now handles this condition.
  11. //        This file is maintained for backward compatibility.
  12. //-------------------------------------------------------------------//
  13.  
  14. min2 = function(a,b)
  15. {
  16.   return min(a,b);  
  17.   // return (b+(a-b).*(a<b));
  18. };
  19.